<template>
    <div>
        <component
            v-for="item in dataList"
            :key="item.id"
            :is="item.image_list.length == 1? 'onepic' : 'threepic'"
            :nowinfo="item"/>
    </div>
</template>
<script lang="ts">
import  getcomponents from './item'
import { Vue, Prop, Component } from 'vue-property-decorator'
@Component({
    components:getcomponents
})
export default class Treepic extends Vue {
  @Prop() dataList:Array<object>

  created(){
    //   console.log(this.dataList);
  }
}

</script>